{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-7.607772760686826 -5.687399560738741\n",
      "((-32)-(-30))/((-7.607772760686826)-(-5.687399560738741))*1e3\n",
      "1041.4642320847151\n"
     ]
    }
   ],
   "source": [
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "import numpy as np\n",
    "#40 20 0\n",
    "x0=-32\n",
    "y0=np.log10(2.46733e-8)       \n",
    "x1=-30\n",
    "y1=np.log10(2.054e-6)         \n",
    "print(y0, y1)\n",
    "#mV/Decade\n",
    "print(\"(({})-({}))/(({})-({}))*1e3\".format(x0, x1, y0, y1))\n",
    "print((x0-x1)/(y0-y1)*1e3)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "py38",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
